defmodule Core.Docker.VulnerabilitySourceTest do
  use Core.SchemaCase, async: true
  alias Core.Docker.VulnerabilitySource

  describe "#truncate/2" do
    test "it will truncate a long string and append ellipses" do
      too_long = "too long string"
      result = VulnerabilitySource.truncate(too_long, 5)

      assert result == "to..."
    end
  end
end
